package com.ethan.mvpdemo.module.login;

import com.ethan.mvpdemo.comm.http.CallBack;

public
/**
 * @Description:
 * @Author ethan
 * @CreateDate: 2021/12/7 10:17
 * @UpdateDate: 2021/12/7 10:17
 * @Version 1.0
 */
class LoginModel  implements LoginContract.ILoginModel {


    @Override
    public void login(String userName, String pwd, CallBack callBack) {
        if ("1".equals(userName)){
            callBack.fail();
        }else{
            callBack.success();
        }

    }
}
